﻿<!DOCTYPE html>
<html lang="utf-8">
<head>
    <?php
    header("content-type:text/html;charset=utf-8");
    include_once ("conn.php");
    ?>
    <link href="../css/css.css" rel="stylesheet" type="text/css">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
    <link rel="stylesheet" href="../lib/bootstrap/css/bootstrap.min.css">
</head>
<script language="javascript">
    function delcfm(){
        if(!confirm("确认要删除论文信息吗？")){
            window.event.returnValue = false;
        }
    }
</script>
<table class="table table-bordered table-hover table-striped" width=500 border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#add3ef" >
    <?php
    //     $thesisInfo=$db->fetchRow("SELECT * FROM lw");

    $sql="select * from lw order by id desc";
    $query=mysqli_query($conn,$sql);
    while($row=mysqli_fetch_array($query)){  ?>
        <thead>
        <tr bgcolor="#f4a460">
            <td>名称</td>
            <td>字数</td>
            <td>级别</td>
            <td>内容</td>
            <td>时间</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td><?php echo $row['papername'];?></td>
            <td><?php echo $row['papernum'];?></td>
            <td><?php echo $row['journalclass'];?></td>
            <td><?php echo $row['neirong'];?></td>
            <td><?php echo $row['lastdate'];?></td>
            <td><a href="delthesis.php?id=<?php echo $row['id'];?>" onclick="delcfm()">删除</ a></td>
        </tr>
        </tbody>

    <?php } ?>
    <tr bgcolor="#f0fff0">
        <center><td><div align="right"><a href="thesis.php">返回添加</ a> </td></center>
    </tr>
    <tr bgcolor="#f0fff0">
        <br><a href="thesislist.php">列表</ a>
    </tr>
</table>
</html>
<?php
//释放结果集
mysqli_free_result($query);
//断开服务器连接
mysqli_close($conn);
?>